package com.zby.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zby.model.pojo.Article;
import com.zby.vo.ArticleVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleMapper extends BaseMapper<Article> {
    int addArticle(Article article);

    List<ArticleVo> selectArticle();

    int updateArticle(Article article);

    ArticleVo selectArticleContent(Integer id);

    int updateViewLikes(Integer articleId, int number);

    int updateAddViewLikes(Integer articleId, Integer number);
    
    List<ArticleVo> selectPersonalArticle(Integer userId);
}